var JMessage=require('./common/jmessage-wxapplet-sdk-1.4.2.min.js');
import hex_md5 from './common/md5.js';
var jim = new JMessage({
       // debug : true
    });
var tamp = new Date().getTime();
var sign =hex_md5("appkey=57248bb135abbe59bae0fc7a&timestamp="+tamp+"&random_str=022cd9fd995849b&key=52bba36c374e17366f62d307")
jim.init({
		"appkey"    : "57248bb135abbe59bae0fc7a",
		"random_str":  "022cd9fd995849b",
		"signature":sign,
		"timestamp":  tamp,
		"flag": 1
}).onSuccess(function(data) {
		// console.log('onSuccess:' + JSON.stringify(data));
}).onFail(function(data) {
		console.log('onFail:' + JSON.stringify(data));
});




export default {
	jim:jim,
	// jimInit:jim.init({
	// 			"appkey"    : "57248bb135abbe59bae0fc7a",
	// 			"random_str":  "022cd9fd995849b",
	// 			"signature":sign,
	// 			"timestamp":  tamp,
	// 			"flag": 1
	// 		})
}